package com.vhall.component.entity.inav.enums;

import com.vhall.component.entity.dictionary.enums.BaseEnum;

/**
 * UserGuideShowStatusEnum-
 * 0:不显示,1:显示
 * @author xing.wang
 * @date 2023/11/6
 */
public enum UserGuideShowStatusEnum implements BaseEnum {
    NOT_SHOW(0, "不显示"),
    SHOW(1, "显示");
    private final Integer value;
    private final String name;
    UserGuideShowStatusEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }
    public static String getNameByValue(Integer value) {
        for (UserGuideShowStatusEnum e : UserGuideShowStatusEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getName();
            }
        }
        return null;
    }
}